<!-- not completed -->

<script>
	function init()
	{
		var elmResult = document.getElementById("result");

		elmResult.innerHTML += getURLAnchor() + "<br />";
		document.title = getURLAnchor();
		
		//alert(window.location.href.substring(0, window.location.href.indexOf("#")));
	}
	
	function getURLAnchor()
	{
		var strURL = window.location.href.toString();
			
		return getAnchor(strURL);
	}
	
	function getAnchor(strIn)
	{
		return strIn.substring(strIn.indexOf("#") + 1, strIn.length);
	}
	
	function setAnchor(strID)
	{
		var elmJumper = document.getElementById("jumper");

		var anchor = document.createElement("a");
		anchor.id = strID;
		anchor.innerHTML = strID;
		
		if (elmJumper.hasChildNodes) 
		{
			elmJumper.innerHTML = "";
		}
		elmJumper.appendChild(anchor);
	}
	
	function reset()
	{
		setTimeout(init, 20);
	}
</script>
<body onload="init();">
	<div id="jumper"></div>
	<a href="#">Inner Link</a><br />
	<a href="#action=1" onclick="reset()" onmousedown="setAnchor(getAnchor(this.href));">Inner Link 1</a><br />
	<a href="#action=2" onclick="reset()" onmousedown="setAnchor(getAnchor(this.href));">Inner Link 2</a><br />
	<a href="#action=3" onclick="reset()" onmousedown="setAnchor(getAnchor(this.href));">Inner Link 3</a><br />
	<a href="#position1" onclick="reset()">Inner Link 4</a><br />
	<a href="#" onclick="window.location.href = window.location.href; ">This Page</a><br />
	<br />
	<input />
	<div id="result"></div>
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<p id="position1"></p>
</body>